/*---------------------------------------------------------------------------------------------------------*/
/*                                                                                                         */
/* Copyright(c) 2020 nuvoton Technology Corp. All rights reserved.                                         */
/*                                                                                                         */
/*---------------------------------------------------------------------------------------------------------*/

/***********************************************************************************************************/
/* Website: http://www.nuvoton.com                                                                         */
/*  E-Mail : MicroC-8bit@nuvoton.com                                                                       */
/*  Date   : June/21/2020                                                                                   */
/***********************************************************************************************************/

/************************************************************************************************************/
/*  File Function: MS51 UART0 initial demo code                                                             */
/************************************************************************************************************/
#include "MS51_8K.H"


/*******************************************************************************
 * FUNCTION_PURPOSE: Main function 
 ******************************************************************************/
void main (void)
{
/* Modify HIRC to 24MHz for UART baud rate function only */
   MODIFY_HIRC(HIRC_24);
   P06_QUASI_MODE;
   UART_Open(24000000,UART0_Timer3,115200);
    while(1)
    {
        UART_Send_Data(UART0,0x55);      /* check uart.c*/
        Timer0_Interrupt_Init(24000000,200,1000);            /* check delay.c*/
    }
    
}
  
